package common;

import java.io.Serializable;

//聊天类
public class Communication implements Serializable {
    private static final long serialVersionUID = 5L;
    private int type;//消息类型
    private User sender;//发送者
    private User receiver;//接收者
    private Group group;//群聊
    private String content;//内容
    private String sendDateTime;//发送时间


    public int getType() {
        return type;
    }
    public void setType(int type) {
        this.type = type;
    }

    public User getSender() {
        return sender;
    }
    public void setSender(User sender) {
        this.sender = sender;
    }

    public User getReceiver() {
        return receiver;
    }
    public void setReceiver(User receiver) {
        this.receiver = receiver;
    }

    public Group getGroup() {
        return group;
    }
    public void setGroup(Group group) {
        this.group = group;
    }

    public String getContent() {
        return content;
    }
    public void setContent(String content) {
        this.content = content;
    }

    public String getSendDateTime() {
        return sendDateTime;
    }
    public void setSendDateTime(String sendDateTime) {
        this.sendDateTime = sendDateTime;
    }
}
